/* Copyright 2014 Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

// nav sidebar control
.nav-control{
  color:#777;
  cursor: pointer;
  font-size:16px;
  margin-top:5px;
}

.sidebar-close{
  float:right;
  margin-right:6px;
  display: none;
  @media (min-width: $screen-md-min) {
      display: block;
  }
}

.sidebar-open{
  float:left;
  margin-left:30px;
  display: none;
  @media (min-width: $screen-md-min) {
      display: block;
  }
}

// override content
.content{
  padding: 30px 40px 40px !important;
  position: relative;
}

// loading
.loading{
  position:fixed;
  top:0;
  text-align:center;
  width:100%;
  height:100%;
  background-color:#eaeaea;
  z-index:3000;
  opacity: 0.5;
  padding-top: 200px;
}

// save
.dropdown-divider {
  height: 1px;
  margin: .5rem 0;
  overflow: hidden;
  background-color: #e5e5e5;
}
.dropdown-item{
  cursor:pointer;
}

// back to list
.backtolist{
  background-image:url(/assets/svg/back.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width:30px;
  height:40px;
  margin:5px;
}

.backtolist:hover{
  background-image:url(/assets/svg/back-hover.svg);
}


legend{
  height: 46px;
  border-bottom: 1px solid #787878;
}

// list
.list-content{
  padding:20px;
}

.td-btn, .sequence-detail{
  opacity: 0.7;
  border:none;
  margin-right: 20px;
  &:hover{
    opacity: 1;
  }
}

.treeclose, .treeopen{
  cursor: pointer;
}

.state-fail{
  background-image: url(/assets/images/state-fail.jpg);
  background-repeat: no-repeat;
  background-size: contain;
}

.state-success{
  background-image: url(/assets/images/state-success.jpg);
  background-repeat: no-repeat;
  background-size: contain;
}

.state-running{
  background-image: url(/assets/images/state-running.jpg);
  background-repeat: no-repeat;
  background-size: contain;
}

.state-waitStart{
  background-image: url(/assets/images/state-waitStart.jpg);
  background-repeat: no-repeat;
  background-size: contain;
}

.state-norun{
  background-image: url(/assets/images/state-norun.jpg);
  background-repeat: no-repeat;
  background-size: contain;
}

.state-desc{
  margin-left: 5px;
  margin-bottom: 20px;
  float:left;
}

.state-icon-desc{
  width:20px;
  height:20px;
  float: left;
}

.state-label-desc{
  float:right;
  margin:2px 8px;
}

.state-list{
  margin-left: 5px;
  float:left;
}

.state-icon-list{
  width:30px;
  height:30px;
  float:left;
}

.state-label-list{
  float:right;
  margin:7px 20px;
}

// history log textarea 
#ActionTabsContent .historyActionTabsContent.tab-content {
  max-height: 600px;
}
.history-log{
  white-space:nowrap; 
  width:100%;
  height:30px;
  border:none;
  border-bottom: 1px solid #eee;
  padding-left: 15px;
}
button.close {
  font-size: 4rem;
  position: absolute;
  top: 20px;
  right: 20px;
}
.dialogWindow {
  width: 60%;
  padding: 2% 5%;
  background-color: #fff;
  border-radius: 8px;
  margin: 5% auto;
  position: relative;
  overflow: hidden;
}

.mcover {
  display:none;
  position: fixed;
  top:0;
  right: 0; 
  left: 0; 
  bottom:0;
  background:rgba(0,0,0,.5); 
  z-index:100;
}

.dialogContant {
  white-space: normal;
  word-break: break-all;
  word-wrap: break-word;
  overflow: auto;
  
  & pre{
    white-space: normal;
  }
}

.input-group{
   padding-left:15px !important;
   padding-right:15px !important;
}

// component choose
.chooseComponentHeader{
  width:40%;
  float: left;
  margin-bottom:10px;
}

.component-filter-input{
  background-color:#fff;
  background:url(/assets/images/search.png) 5px 60% no-repeat #fff;
  padding-left:26px;
}

// table list
.list-content{ 
  display: flex;
}

.list-header{
  height:40px;
  width:100%;
  font-weight: 600;
}

.list-body{
  border-top: 1px solid #787878;
  padding:0 20px;
}

.list-row{
  display: flex;
  align-items: center;
}

.list-row-more{
  display: block;
  height:60px;
  padding: 13px 10px;
  border-bottom: 1px solid #787878;
}

.sublist-row{
  padding: 15px 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eaeaea;
}

.list-btn{
  cursor:pointer;
  &:hover{
    background-color:#5d8fc2;
    color:white;
  }
}

.search-area{
  width:100%;
  height:50px;
  margin-top:15px;
}

.filter-input{
  padding: 6px 12px;
  width:200px;
  margin-left:5px;
}

// required
.required{
  color:red;
  margin-right:3px;
}

// popup
.popup{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index : 1050;
  display : block;
  outline : 0;
  opacity: 1;
}

.popup-backdrop{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index : 1040;
  display : block;
  outline : 0;
  opacity: 0.5;
  background-color:#000;
}

.popup-body{
  margin : 100px auto;
  opacity: 1;
  width:500px;
  height:210px;
}

.close-popup{
  font-size:16px;
  float:right;
  margin-top:8px;
  cursor:pointer;
  &:hover{
    font-size: 18px;
  }
}

.popup-content{
  border-bottom:1px solid #787878;
  padding-bottom:20px;
}

.popup-btn{
  padding:10px;
  float:left;
  width:100%;
  text-align: right;
}
